import request from "@/utils/request";

// 查询报告列表列表
export function listReportDetails(query) {
  return request({
    url: "/report/reportDetails/list",
    method: "get",
    params: query,
  });
}

// 查询报告列表详细
export function getReportDetails(id) {
  return request({
    url: "/report/reportDetails/" + id,
    method: "get",
  });
}

// 新增报告列表
export function addReportDetails(data) {
  return request({
    url: "/report/reportDetails",
    method: "post",
    data: data,
  });
}

// 修改报告列表
export function updateReportDetails(data) {
  return request({
    url: "/report/reportDetails",
    method: "put",
    data: data,
  });
}

// 删除报告列表
export function delReportDetails(id) {
  return request({
    url: "/report/reportDetails/" + id,
    method: "delete",
  });
}
// 报告列表导出word报告
export function getWord(data) {
  return request({
    url: "/wordDownload/getWord",
    method: "post",
    data: data,
  });
}

// 批量导出pdf
export function getPDF(data) {
  return request({
    url: '/order/order/downloadBatchReport',
    method: 'post',
    data: data,
  })
}
